package com.hurr.bo;

import java.util.Date;

/**
 * This class represents the user of the application and his functionality
 * 
 * @author Fernando Perelli
 */
public class User extends AbstractModel {

	/**
	 * id
	 */
	private Long id;

	/**
	 * name
	 */
	private String name;

	/**
	 * userName
	 */
	private String userName;

	/**
	 * password
	 */
	private String password;
	/**
	 * date
	 */
	private Date dischargeDate;

	/**
	 * enabled
	 */
	private boolean enabled;

	/**
	 * role
	 */
	private Role role;
	/**
	 * finance
	 */
	private Finance finance;

	/**
	 * 
	 */
	public User() {
		super();
	}

	/**
	 * Get Id
	 * 
	 * @return Long
	 */
	public Long getId() {
		return id;
	}

	/**
	 * Set Id
	 * 
	 * @param id
	 * 
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * Get Name
	 * 
	 * @return String
	 */
	public String getName() {
		return name;
	}

	/**
	 * Set Name
	 * 
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Get UserName
	 * 
	 * @return userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * Set UserName
	 * 
	 * @param userName
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * Get Password
	 * 
	 * @return password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * Set Password
	 * 
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * Get Date
	 * 
	 * @return date
	 */
	public Date getDischargeDate() {
		return dischargeDate;
	}

	/**
	 * Set Date
	 * 
	 * @param date
	 */
	public void setDischargeDate(Date dischargeDate) {
		this.dischargeDate = dischargeDate;
	}

	/**
	 * Is Enabled
	 * 
	 * @return enabled
	 */
	public boolean isEnabled() {
		return enabled;
	}

	/**
	 * Set Enabled
	 * 
	 * @param enabled
	 */
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	/**
	 * Get Role
	 * 
	 * @return role
	 */
	public Role getRole() {
		return role;
	}

	/**
	 * Set Role
	 * 
	 * @param role
	 */
	public void setRole(Role role) {
		this.role = role;
	}

	/**
	 * Get Finance
	 * 
	 * @return Finance
	 */
	public Finance getFinance() {
		return finance;
	}

	/**
	 * Set Finance
	 * 
	 * @param finance
	 * 
	 */
	public void setFinance(Finance finance) {
		this.finance = finance;
	}

}
